package lab02.test33;
import java.util.ArrayList;
import java.util.List;


/**
 * Created by mac on 2017/11/21.
 */
public class Test {
    public static void main(String[] args) {
            List<String> list = new ArrayList<String>();


            list.add("apple");
            list.add("grape");
            list.add("pear");
            list.add("banana");


            Object[] K = list.toArray();
            System.out.println("最大数是" + K[0]);
            System.out.println("最小数是" + K[K.length - 1]);


            for (Object o : K) {
                System.out.println(o);
            }
        }



}
